package com.outsider;
import org.nutz.dao.Dao;
import org.nutz.dao.util.Daos;
import org.nutz.ioc.Ioc;
import org.nutz.mvc.NutConfig;
import org.nutz.mvc.Setup;

import com.outsider.entity.Student;

public class MainSetup implements Setup {
	
    public void init(NutConfig conf) {
        Ioc ioc = conf.getIoc();
        Dao dao = ioc.get(Dao.class);
        Daos.createTablesInPackage(dao, "com.outsider", false);
        System.out.println(dao.count(Student.class));
        
    }

    public void destroy(NutConfig conf) {
    }

}